<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the JidoujishoSelectableText constructor from Class JidoujishoSelectableText from the utils library, for the Dart programming language.">
  <title>JidoujishoSelectableText constructor - JidoujishoSelectableText - utils library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">yuuna</a></li>
    <li><a href="../../utils/utils-library.html">utils</a></li>
    <li><a href="../../utils/JidoujishoSelectableText-class.html">JidoujishoSelectableText</a></li>
    <li class="self-crumb">JidoujishoSelectableText const constructor</li>
  </ol>
  <div class="self-name">JidoujishoSelectableText</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        brightness_4
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        brightness_5
      </span>
    </label>
  </div>
</header>
<main>

  <div id="dartdoc-main-content" class="main-content">
      <div>
<h1><span class="kind-constructor">JidoujishoSelectableText</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      const
      <span class="name ">JidoujishoSelectableText</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-data"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">data</span>, </span></li>
<li><span class="parameter" id="-param-key">{<span class="type-annotation"><a href="https://api.flutter.dev/flutter/foundation/Key-class.html">Key</a>?</span> <span class="parameter-name">key</span>, </span></li>
<li><span class="parameter" id="-param-controller"><span class="type-annotation"><a href="../../utils/JidoujishoSelectableTextController-class.html">JidoujishoSelectableTextController</a>?</span> <span class="parameter-name">controller</span>, </span></li>
<li><span class="parameter" id="-param-focusNode"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/FocusNode-class.html">FocusNode</a>?</span> <span class="parameter-name">focusNode</span>, </span></li>
<li><span class="parameter" id="-param-style"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/painting/TextStyle-class.html">TextStyle</a>?</span> <span class="parameter-name">style</span>, </span></li>
<li><span class="parameter" id="-param-strutStyle"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/painting/StrutStyle-class.html">StrutStyle</a>?</span> <span class="parameter-name">strutStyle</span>, </span></li>
<li><span class="parameter" id="-param-textAlign"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/TextAlign.html">TextAlign</a>?</span> <span class="parameter-name">textAlign</span>, </span></li>
<li><span class="parameter" id="-param-textDirection"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/TextDirection.html">TextDirection</a>?</span> <span class="parameter-name">textDirection</span>, </span></li>
<li><span class="parameter" id="-param-textScaleFactor"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a>?</span> <span class="parameter-name">textScaleFactor</span>, </span></li>
<li><span class="parameter" id="-param-showCursor"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">showCursor</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-autofocus"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">autofocus</span> = <span class="default-value">false</span>, </span></li>
<li><span class="parameter" id="-param-toolbarOptions"><span>@<a href="https://api.flutter.dev/flutter/dart-core/Deprecated-class.html">Deprecated</a>(&#39;Use `contextMenuBuilder` instead. &#39; &#39;This feature was deprecated after v3.3.0-0.5.pre.&#39;)</span> <span class="type-annotation"><a class="deprecated" href="https://api.flutter.dev/flutter/widgets/ToolbarOptions-class.html">ToolbarOptions</a>?</span> <span class="parameter-name">toolbarOptions</span>, </span></li>
<li><span class="parameter" id="-param-minLines"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">minLines</span>, </span></li>
<li><span class="parameter" id="-param-maxLines"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> <span class="parameter-name">maxLines</span>, </span></li>
<li><span class="parameter" id="-param-cursorWidth"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a></span> <span class="parameter-name">cursorWidth</span> = <span class="default-value">2.0</span>, </span></li>
<li><span class="parameter" id="-param-cursorHeight"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/double-class.html">double</a>?</span> <span class="parameter-name">cursorHeight</span>, </span></li>
<li><span class="parameter" id="-param-cursorRadius"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/Radius-class.html">Radius</a>?</span> <span class="parameter-name">cursorRadius</span>, </span></li>
<li><span class="parameter" id="-param-cursorColor"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/Color-class.html">Color</a>?</span> <span class="parameter-name">cursorColor</span>, </span></li>
<li><span class="parameter" id="-param-selectionHeightStyle"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/BoxHeightStyle.html">BoxHeightStyle</a></span> <span class="parameter-name">selectionHeightStyle</span> = <span class="default-value">ui.BoxHeightStyle.tight</span>, </span></li>
<li><span class="parameter" id="-param-selectionWidthStyle"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/BoxWidthStyle.html">BoxWidthStyle</a></span> <span class="parameter-name">selectionWidthStyle</span> = <span class="default-value">ui.BoxWidthStyle.tight</span>, </span></li>
<li><span class="parameter" id="-param-dragStartBehavior"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/gestures/DragStartBehavior.html">DragStartBehavior</a></span> <span class="parameter-name">dragStartBehavior</span> = <span class="default-value">DragStartBehavior.start</span>, </span></li>
<li><span class="parameter" id="-param-enableInteractiveSelection"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">enableInteractiveSelection</span> = <span class="default-value">true</span>, </span></li>
<li><span class="parameter" id="-param-selectionControls"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/TextSelectionControls-class.html">TextSelectionControls</a>?</span> <span class="parameter-name">selectionControls</span>, </span></li>
<li><span class="parameter" id="-param-onTap"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/gestures/GestureTapCallback.html">GestureTapCallback</a>?</span> <span class="parameter-name">onTap</span>, </span></li>
<li><span class="parameter" id="-param-onDoubleTap"><span class="type-annotation">dynamic</span> <span class="parameter-name">onDoubleTap</span>(<ol class="parameter-list"></ol>
)?, </span></li>
<li><span class="parameter" id="-param-scrollPhysics"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/ScrollPhysics-class.html">ScrollPhysics</a>?</span> <span class="parameter-name">scrollPhysics</span>, </span></li>
<li><span class="parameter" id="-param-semanticsLabel"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">semanticsLabel</span>, </span></li>
<li><span class="parameter" id="-param-textHeightBehavior"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-ui/TextHeightBehavior-class.html">TextHeightBehavior</a>?</span> <span class="parameter-name">textHeightBehavior</span>, </span></li>
<li><span class="parameter" id="-param-textWidthBasis"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/painting/TextWidthBasis.html">TextWidthBasis</a>?</span> <span class="parameter-name">textWidthBasis</span>, </span></li>
<li><span class="parameter" id="-param-onSelectionChanged"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/SelectionChangedCallback.html">SelectionChangedCallback</a>?</span> <span class="parameter-name">onSelectionChanged</span>, </span></li>
<li><span class="parameter" id="-param-contextMenuBuilder"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/EditableTextContextMenuBuilder.html">EditableTextContextMenuBuilder</a>?</span> <span class="parameter-name">contextMenuBuilder</span> = <span class="default-value">_defaultContextMenuBuilder</span>, </span></li>
<li><span class="parameter" id="-param-magnifierConfiguration"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/TextMagnifierConfiguration-class.html">TextMagnifierConfiguration</a>?</span> <span class="parameter-name">magnifierConfiguration</span>}</span></li>
</ol>)
    </section>

    
<section class="desc markdown">
  <p>Creates a selectable text widget.</p>
<p>If the <a href="../../utils/JidoujishoSelectableText/style.html">style</a> argument is null, the text will use the style from the
closest enclosing <a href="https://api.flutter.dev/flutter/widgets/DefaultTextStyle-class.html">DefaultTextStyle</a>.</p>
<p>The <a href="../../utils/JidoujishoSelectableText/showCursor.html">showCursor</a>, <a href="../../utils/JidoujishoSelectableText/autofocus.html">autofocus</a>, <a href="../../utils/JidoujishoSelectableText/dragStartBehavior.html">dragStartBehavior</a>, <a href="../../utils/JidoujishoSelectableText/selectionHeightStyle.html">selectionHeightStyle</a>,
<a href="../../utils/JidoujishoSelectableText/selectionWidthStyle.html">selectionWidthStyle</a> and <a href="../../utils/JidoujishoSelectableText/data.html">data</a> parameters must not be null. If specified,
the <a href="../../utils/JidoujishoSelectableText/maxLines.html">maxLines</a> argument must be greater than zero.</p>
</section>


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">&#47;&#47;&#47; The [showCursor], [autofocus], [dragStartBehavior], [selectionHeightStyle],
&#47;&#47;&#47; [selectionWidthStyle] and [data] parameters must not be null. If specified,
&#47;&#47;&#47; the [maxLines] argument must be greater than zero.
const JidoujishoSelectableText(
  String this.data, {
  super.key,
  this.controller,
  this.focusNode,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.textScaleFactor,
  this.showCursor = false,
  this.autofocus = false,
  @Deprecated(
    &#39;Use `contextMenuBuilder` instead. &#39;
    &#39;This feature was deprecated after v3.3.0-0.5.pre.&#39;,
  )
      this.toolbarOptions,
  this.minLines,
  this.maxLines,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.onDoubleTap,
  this.scrollPhysics,
  this.semanticsLabel,
  this.textHeightBehavior,
  this.textWidthBasis,
  this.onSelectionChanged,
  this.contextMenuBuilder = _defaultContextMenuBuilder,
  this.magnifierConfiguration,
})  : assert(maxLines == null || maxLines &gt; 0),
      assert(minLines == null || minLines &gt; 0),
      assert(
        (maxLines == null) || (minLines == null) || (maxLines &gt;= minLines),
        &quot;minLines can&#39;t be greater than maxLines&quot;,
      ),
      textSpan = null;</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  <li><a href="../../index.html">yuuna</a></li>
  <li><a href="../../utils/utils-library.html">utils</a></li>
  <li><a href="../../utils/JidoujishoSelectableText-class.html">JidoujishoSelectableText</a></li>
  <li class="self-crumb">JidoujishoSelectableText const constructor</li>
</ol>


    <h5>JidoujishoSelectableText class</h5>
    <ol>

        <li class="section-title"><a href="../../utils/JidoujishoSelectableText-class.html#constructors">Constructors</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/JidoujishoSelectableText.html">JidoujishoSelectableText</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/JidoujishoSelectableText.rich.html">rich</a></li>


        <li class="section-title">
          <a href="../../utils/JidoujishoSelectableText-class.html#instance-properties">Properties</a>
        </li>
          <li><a href="../../utils/JidoujishoSelectableText/autofocus.html">autofocus</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/contextMenuBuilder.html">contextMenuBuilder</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/controller.html">controller</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/cursorColor.html">cursorColor</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/cursorHeight.html">cursorHeight</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/cursorRadius.html">cursorRadius</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/cursorWidth.html">cursorWidth</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/data.html">data</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/dragStartBehavior.html">dragStartBehavior</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/enableInteractiveSelection.html">enableInteractiveSelection</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/focusNode.html">focusNode</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/hashCode.html">hashCode</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/key.html">key</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/magnifierConfiguration.html">magnifierConfiguration</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/maxLines.html">maxLines</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/minLines.html">minLines</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/onDoubleTap.html">onDoubleTap</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/onSelectionChanged.html">onSelectionChanged</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/onTap.html">onTap</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/scrollPhysics.html">scrollPhysics</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/selectionControls.html">selectionControls</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/selectionEnabled.html">selectionEnabled</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/selectionHeightStyle.html">selectionHeightStyle</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/selectionWidthStyle.html">selectionWidthStyle</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/semanticsLabel.html">semanticsLabel</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/showCursor.html">showCursor</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/strutStyle.html">strutStyle</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/style.html">style</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textAlign.html">textAlign</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textDirection.html">textDirection</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textHeightBehavior.html">textHeightBehavior</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textScaleFactor.html">textScaleFactor</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textSpan.html">textSpan</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/textWidthBasis.html">textWidthBasis</a></li>
          <li><a class="deprecated" href="../../utils/JidoujishoSelectableText/toolbarOptions.html">toolbarOptions</a></li>

        <li class="section-title"><a href="../../utils/JidoujishoSelectableText-class.html#instance-methods">Methods</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/StatefulWidget/createElement.html">createElement</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/createState.html">createState</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/debugDescribeChildren.html">debugDescribeChildren</a></li>
          <li><a href="../../utils/JidoujishoSelectableText/debugFillProperties.html">debugFillProperties</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toDiagnosticsNode.html">toDiagnosticsNode</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/Diagnosticable/toString.html">toString</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringDeep.html">toStringDeep</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/foundation/DiagnosticableTree/toStringShallow.html">toStringShallow</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/toStringShort.html">toStringShort</a></li>

        <li class="section-title inherited"><a href="../../utils/JidoujishoSelectableText-class.html#operators">Operators</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/widgets/Widget/operator_equals.html">operator ==</a></li>




</ol>

  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    yuuna
      2.8.0+93
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

